#include "../Header Files/CAnimatedObject.h"

CAnimatedObject::CAnimatedObject()
{
	m_nObjectType = eANIMATED_OBJ;
	m_vPosition = { 0.0f, 0.0f, 0.0f };
	m_pAnimManager = new CAnimationManager();
}

void CAnimatedObject::SetAnimationManager(CAnimationManager* _pMngr)
{
	if (m_pAnimManager)
	{
		delete m_pAnimManager;
		m_pAnimManager = NULL;
	}
	m_pAnimManager = _pMngr;
}

CAnimatedObject::~CAnimatedObject()
{
	if (m_pAnimManager)
	{
		delete m_pAnimManager;
		m_pAnimManager = NULL;
	}
}
